package work3;

import java.util.Scanner;

public class Player {
	
	private String name;
	private int grade;
	private double energy;
	private static int total;
	
	static{
		System.out.println("欢迎来到 除妖驱魔大旅途 游戏！！！");
	}
	
	public Player() {
		super();
		total++;
	}

	public Player(String name, int grade, double energy) {
		super();
		total++;
		this.name = name;
		this.grade = grade;
		this.energy = energy;
	}
	
	public void say(){
		
		System.out.print(name + " 发言到：");
		Scanner s = new Scanner(System.in);
		String say = s.next();	
		
	}
	
	public static void showTotal(){
		System.out.println("当前在线玩家：" + total);
	}
	
	public  void show(){
		System.out.println("姓名："+ name + "，等级：" + grade + "，能量值：" + energy);
	}
	
	
}
